CREATE TABLE [dbo].[TCDOCU_PGGR]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_CORR_DOCU] [dbo].[TD_VC_008] NOT NULL,
[CO_PROV] [dbo].[TD_VC_020] NOT NULL,
[TI_DOCU] [dbo].[TD_VC_003] NOT NULL,
[NU_DOCU] [dbo].[TD_VC_020] NOT NULL,
[CO_MONE] [dbo].[TD_VC_003] NOT NULL,
[FE_EMIS] [dbo].[TD_DT_001] NOT NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NOT NULL CONSTRAINT [DF__TCDOCU_PG__FA_TI__16DA1AE5] DEFAULT ((1.000)),
[NU_ANNO] [dbo].[TD_VC_004] NULL,
[NU_MESE] [dbo].[TD_VC_002] NULL,
[IM_TOTA] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TCDOCU_PG__IM_TO__17CE3F1E] DEFAULT ((0)),
[NU_CUOT] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TCDOCU_PG__NU_CU__18C26357] DEFAULT ((0)),
[CO_TIPO_OPER] [dbo].[TD_VC_003] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[DE_OBSE] [dbo].[TD_VC_100] NOT NULL,
[TI_SITU] [dbo].[TD_VC_003] NOT NULL,
[ST_CONT] [dbo].[TD_VC_001] NULL,
[NU_ASTO] [dbo].[TD_VC_010] NULL,
[NU_PROC] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TCDOCU_PG__NU_PR__19B68790] DEFAULT ((0)),
[ST_FECH_VENC] [dbo].[TD_VC_001] NOT NULL,
[NU_DIAS_VENC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TCDOCU_PG__NU_DI__1AAAABC9] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCDOCU_PG__CO_US__1B9ED002] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCDOCU_PG__FE_US__1C92F43B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCDOCU_PG__CO_US__1D871874] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCDOCU_PG__FE_US__1E7B3CAD] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCDOCU_PGGR] ADD CONSTRAINT [PK_TCDOCU_PGGR_1] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_PROV], [TI_DOCU], [NU_DOCU]) ON [PRIMARY]
GO
